﻿// using bên C# == import bên Java
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CSharp_1209.NewMethod;


// namespace bên C# == package bên Java
namespace CSharp_1209
{
    class Program
    {

        public static void DateTimeDemo()
        {

        }

        public static void JaggedArrayDemo()
        {

        }

        public static void ArrayRuntimeDemo()
        {

        }

        public static void Add(int a, int b, out int c)
        {
            c = a + b;
        }

        public static void TestAdd()
        {
            int o1 = 10, o2 = 20, total;

            Add(o1, o2, out total);

            Console.WriteLine("o1 = {0}, o2 = {1}, total = {2}", o1, o2, total);
        }

        public static void Swap(ref int a, ref int b)
        {
            int temp;

            temp = a;
            a = b;
            b = temp;
        }


        public static void TestSwap()
        {
            int c = 3, d = 5;

            Swap(ref c, ref d);
            Console.WriteLine("c = {0}, d = {1}", c, d);
        }

        /// <summary>
        /// Trong một Project chỉ có 1 hàm Main (khác Java)
        /// </summary>
        /// <param name="args">Mô tả chuc nang cua bien</param>
        static void Main(string[] args)
        {
            //Student.Test();
            //TestSwap();
            //Cat.Test();
            //Generic.General<int>.Test();
        }
    }
}
